package cn.edu.scau.cmi.heyonglin.safeComposite;

import java.util.HashSet;
import java.util.Set;

import cn.edu.scau.cmi.heyonglin.consistentComposite.ConsistentComponent;

public abstract class SafeComponent {
	private Set<SafeComponent>person = new HashSet<SafeComponent>();
	SafeComponent Team=null;
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	abstract String doSomething();
	abstract SafeComponent getTeam();
	abstract SafeComponent addPerson(SafeComponent person);
	public Set<SafeComponent> getPerson() {
		// TODO Auto-generated method stub
		return person;
	}
	
}